package com.yutel.multher.example;

import java.util.ArrayList;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.yutel.multher.reaper.listener.OnAutoListener;

public class SmsAutarkicListener implements OnAutoListener<SmsPo> {
	private static final Logger log = LoggerFactory
			.getLogger(SmsAutarkicListener.class);

	@Override
	public List<SmsPo> OnDataLoad(int count) {
		log.info("OnDataLoad():" + count);
		List<SmsPo> list = new ArrayList<SmsPo>();
		list.add(new SmsPo());
		return list;
	}

	@Override
	public void OnDataEnd(List<SmsPo> list) {
		log.info("OnDataEnd()");
	}

	@Override
	public SmsAutarkicListener NewTask() {
		log.info("OnTaskInit()");
		return new SmsAutarkicListener();
	}

	@Override
	public void OnTaskProcess(SmsPo tdp) {
		log.info("OnTaskProcess()");
	}
}
